package com.gxa.admin.recycling.service.impl;

import com.gxa.admin.recycling.mapper.RecycleitemMapper;
import com.gxa.admin.recycling.service.RecycleitemService;
import com.gxa.core.recycling.pojo.Recycleitem;
import com.gxa.core.recycling.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

@Service("recycleitemService")
public class RecycleitemServiceImpl extends BaseServiceImpl<Recycleitem> implements RecycleitemService {

    @Autowired
    RecycleitemMapper recycleitemMapper;

    @Override
    public List<Recycleitem> findRecycleitemByOrderId(Long id) {
        Example example=new Example(Recycleitem.class);
        Example.Criteria criteria = example.createCriteria();
        criteria.andEqualTo("yid",id);

        return recycleitemMapper.selectByExample(example);

    }
}
